package com.hhss.qishi.DPtest.designpattern.observer;

public class Subscriber2 implements Observer{

    private float temp;

    private float wind;

    @Override
    public void update(float temp, float wind) {
        this.temp = temp;
        this.wind = wind;
    }

    @Override
    public void disable() {
        System.out.println("avg:"+(temp + wind));
    }
}
